do not rely on a tempfile tool
authorØyvind Kolås <ok@src.gnome.org>
Tue, 6 Jun 2006 19:09:33 +0000 (19:09 +0000)
committerØyvind Kolås <ok@src.gnome.org>
Tue, 6 Jun 2006 19:09:33 +0000 (19:09 +0000)
ChangeLog
docs/Makefile.am
docs/tools/xml_insert.sh

index 09aa39141f9f93b0b05c54af017570b3262e1966..a13d25fc5b90a04e2d43d796a803e0492aea9597 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-06-06  Øyvind Kolås  <pippin@gimp.org>
+
+       * docs/Makefile.am: redirect the check for tempfile to /dev/null
+       * docs/tools/xml_insert.sh: Add tempfile workaround here as well.
+
 2006-06-06  Øyvind Kolås  <pippin@gimp.org>
 
        * docs/Makefile.am: Do not rely that a command calle tempfile exists.
index becd722cfec5acd3dd132c5f960c2f984df3fa17..1f693e3e0480d01436a3605449e1f09b82d4fb25 100644 (file)
@@ -48,7 +48,7 @@ index.html: index-static.html                    \
            Makefile.am
        echo -n "HTML: $@"
        cp $< $@ 
-       (which tempfile && TMPFILE=`tempfile` || TMPFILE="/tmp/babl_build_tempfile" ;\
+       (which tempfile > /dev/null&& TMPFILE=`tempfile` || TMPFILE="/tmp/babl_build_tempfile" ;\
        export BABL_PATH="$(top_builddir)/extensions"; $(top_builddir)/tests/babl_html_dump > $$TMPFILE;\
        $(top_srcdir)/docs/tools/xml_insert.sh $@ BablBase $$TMPFILE;\
        rm -f $$TMPFILE )
index f53a8c4c6b4bb3d180a360e640bbfd831b679b14..139bd15066cb17214c49c30ae366b2cca2914c4c 100755 (executable)
@@ -11,7 +11,7 @@
 #
 # FIXME: add argument checking / error handling
 
-TMP_FILE=`tempfile`
+which tempfile > /dev/null && TMP_FILE=`tempfile` || TMP_FILE="/tmp/temp_file"
 
 cp $1 $TMP_FILE